//
//  ZhaoPinTableViewCell.m
//  DLSlideViewDemo
//
//  Created by 晔 邓 on 16/4/5.
//  Copyright © 2016年 dongle. All rights reserved.
//

#import "ZhaoPinTableViewCell.h"

#define LabelColor  [UIColor colorWithRed:0.67 green:0.67 blue:0.68 alpha:1.00]

@implementation ZhaoPinTableViewCell

- (void)awakeFromNib {
    
    self.DiZhiXinXiLabel.font = [UIFont systemFontOfSize:12];
    self.XinShuiLabel.font = [UIFont systemFontOfSize:12];
    
    self.DiZhiXinXiLabel.textColor =LabelColor ;
    
    self.ZhiWeiLabel.numberOfLines = 0;
    self.ZhiWeiLabel.font = [UIFont systemFontOfSize:16];
    
    self.ZhiWeiLabel.textColor = LabelColor;
    
    self.XinShuiLabel.textColor = [UIColor colorWithRed:0.99 green:0.62 blue:0.54 alpha:1.00];
    
    //self.ZhiWeiLabel.backgroundColor = [UIColor redColor];
    
    
    // Initialization code
}

-(void)setZhaoPinModel:(CompanyZhaoPinModel *)zhaoPinModel{

//    @property (weak, nonatomic) IBOutlet UILabel *GangWeiLabel;//岗位
//    @property (weak, nonatomic) IBOutlet UILabel *DiZhiXinXiLabel;//学历介绍
//    @property (weak, nonatomic) IBOutlet UILabel *XinShuiLabel;//薪水
//    @property (weak, nonatomic) IBOutlet UILabel *ZhiWeiLabel;//职位描述
    

    
    self.GangWeiLabel.text = zhaoPinModel.Dutyname;
    
    NSAttributedString * Str = [[NSAttributedString alloc] initWithData:[zhaoPinModel.Intro dataUsingEncoding:NSUnicodeStringEncoding] options:@{ NSDocumentTypeDocumentAttribute: NSHTMLTextDocumentType } documentAttributes:nil error:nil];
    //contentStr = [Str string];
    self.ZhiWeiLabel.numberOfLines = 3;
    self.ZhiWeiLabel.text = [Str string];
    
    self.XinShuiLabel.text = zhaoPinModel.Salary;
    
    
    
    if (!zhaoPinModel.Education) {
        
        zhaoPinModel.Education = @"";
    }
    if (!zhaoPinModel.City) {
        
        zhaoPinModel.City = @"";
    }

    if (!zhaoPinModel.Years) {
        
        zhaoPinModel.Years = @"";
    }

    
    self.DiZhiXinXiLabel.text = [NSString stringWithFormat:@"%@   %@   %@",zhaoPinModel.City,zhaoPinModel.Years,zhaoPinModel.Education];
    



}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
